﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="T_aspdotnet_ScriptServices.aspx.cs" Inherits="Newsell.T_aspdotnet_ScriptServices" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script type="text/javascript" language="javascript">
        function btnInvoke_onclick() {
            var theName = $get("tbName").value;
            SimpleWebService.SayHello(theName, onSayHelloSucceeded);
        }
        function onSayHelloSucceeded(result) {
            $get("result").innerHTML = result;
        }
    </script>
</head>
<body>
    <asp:ScriptManager ID="ScriptManager1" runat="server">
        <Services><asp:ServiceReference Path="~/T_aspdotnet_ScriptServices.asmx" /></Services>
    </asp:ScriptManager>
    <form id="form1" runat="server">
    <div>
    <input type="text" />
    <input type="button" value="Say Hello" onclick="return btnInvoke_onclick()" />
    <div ></div>
    </div>
    </form>
</body>
</html>
